webpackJsonp([0],{

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

	var _react = __webpack_require__(1);

	var _react2 = _interopRequireDefault(_react);

	var _KanbanBoard = __webpack_require__(157);

	var _KanbanBoard2 = _interopRequireDefault(_KanbanBoard);

	__webpack_require__(161);

	var cardsList = [{
		id: 1,
		title: "Red the Book",
		description: "I should read the whole book",
		status: "in-progress",
		tasks: []
	}, {
		id: 2,
		title: "Write some code",
		description: "Code along with the samples in the book",
		status: "todo",
		tasks: [{
			id: 1,
			name: "ContratList Example",
			done: true
		}, {
			id: 2,
			name: "Kanban Example",
			done: false
		}, {
			id: 3,
			name: "My own experiments",
			done: false
		}]
	}];

	_react2['default'].render(_react2['default'].createElement(_KanbanBoard2['default'], { cards: cardsList }), document.getElementById('root'));

/***/ },

/***/ 157:
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, '__esModule', {
		value: true
	});

	var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

	var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

	function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

	var _react = __webpack_require__(1);

	var _react2 = _interopRequireDefault(_react);

	var _List = __webpack_require__(158);

	var _List2 = _interopRequireDefault(_List);

	var KanbanBoard = (function (_Component) {
		_inherits(KanbanBoard, _Component);

		function KanbanBoard() {
			_classCallCheck(this, KanbanBoard);

			_get(Object.getPrototypeOf(KanbanBoard.prototype), 'constructor', this).apply(this, arguments);
		}

		_createClass(KanbanBoard, [{
			key: 'render',
			value: function render() {
				return _react2['default'].createElement(
					'div',
					{ className: 'app' },
					_react2['default'].createElement(_List2['default'], { id: 'todo', title: 'To Do',
						cards: this.props.cards.filter(function (card) {
							return card.status === "todo";
						}) }),
					_react2['default'].createElement(_List2['default'], { id: 'in-progress', title: 'In Progress',
						cards: this.props.cards.filter(function (card) {
							return card.status === "in-progress";
						}) }),
					_react2['default'].createElement(_List2['default'], { id: 'done', title: 'Done',
						cards: this.props.cards.filter(function (card) {
							return card.status === "done";
						}) })
				);
			}
		}]);

		return KanbanBoard;
	})(_react.Component);

	exports['default'] = KanbanBoard;
	module.exports = exports['default'];

/***/ },

/***/ 158:
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, '__esModule', {
		value: true
	});

	var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

	var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

	function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

	var _react = __webpack_require__(1);

	var _react2 = _interopRequireDefault(_react);

	var _Card = __webpack_require__(159);

	var _Card2 = _interopRequireDefault(_Card);

	var List = (function (_Component) {
		_inherits(List, _Component);

		function List() {
			_classCallCheck(this, List);

			_get(Object.getPrototypeOf(List.prototype), 'constructor', this).apply(this, arguments);
		}

		_createClass(List, [{
			key: 'render',
			value: function render() {
				var cards = this.props.cards.map(function (card) {
					return _react2['default'].createElement(_Card2['default'], { id: card.id,
						title: card.title,
						description: card.description,
						tasks: card.tasks });
				});

				return _react2['default'].createElement(
					'div',
					{ className: 'list' },
					_react2['default'].createElement(
						'h1',
						null,
						this.props.title
					),
					cards
				);
			}
		}]);

		return List;
	})(_react.Component);

	exports['default'] = List;
	module.exports = exports['default'];

/***/ },

/***/ 159:
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, '__esModule', {
		value: true
	});

	var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

	var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

	function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

	var _react = __webpack_require__(1);

	var _react2 = _interopRequireDefault(_react);

	var _CheckList = __webpack_require__(160);

	var _CheckList2 = _interopRequireDefault(_CheckList);

	var Card = (function (_Component) {
		_inherits(Card, _Component);

		function Card() {
			_classCallCheck(this, Card);

			_get(Object.getPrototypeOf(Card.prototype), 'constructor', this).apply(this, arguments);
			this.state = {
				showDetails: false
			};
		}

		_createClass(Card, [{
			key: 'render',
			value: function render() {
				var _this = this;

				var cardDetals = undefined;
				if (this.state.showDetails) {
					cardDetals = _react2['default'].createElement(
						'div',
						{ className: 'card_details' },
						this.props.description,
						_react2['default'].createElement(_CheckList2['default'], { cardId: this.props.id, tasks: this.props.tasks })
					);
				};

				return _react2['default'].createElement(
					'div',
					{ className: 'card' },
					_react2['default'].createElement(
						'div',
						{ className: 'card_title',
							onClick: function () {
								return _this.setState({ showDetails: !_this.state.showDetails });
							} },
						this.props.title
					),
					cardDetals
				);
			}
		}]);

		return Card;
	})(_react.Component);

	exports['default'] = Card;
	module.exports = exports['default'];

/***/ },

/***/ 160:
/***/ function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
		value: true
	});

	var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

	var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

	function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

	var _react = __webpack_require__(1);

	var _react2 = _interopRequireDefault(_react);

	var CheckList = (function (_Component) {
		_inherits(CheckList, _Component);

		function CheckList() {
			_classCallCheck(this, CheckList);

			_get(Object.getPrototypeOf(CheckList.prototype), "constructor", this).apply(this, arguments);
		}

		_createClass(CheckList, [{
			key: "render",
			value: function render() {
				var tasks = this.props.tasks.map(function (task) {
					return _react2["default"].createElement(
						"li",
						{ className: "checklist_task" },
						_react2["default"].createElement("input", { type: "checkbox", defaultChecked: task.done }),
						task.name,
						_react2["default"].createElement("a", { href: "#", className: "checklist_task--remove" })
					);
				});

				return _react2["default"].createElement(
					"div",
					{ className: "checklist" },
					_react2["default"].createElement(
						"ul",
						null,
						tasks
					)
				);
			}
		}]);

		return CheckList;
	})(_react.Component);

	exports["default"] = CheckList;
	module.exports = exports["default"];

/***/ },

/***/ 161:
/***/ function(module, exports) {

	// removed by extract-text-webpack-plugin

/***/ }

});